from source import *
from source.entity import entity as entity
import os

myDatabase = db("test", os.getcwd())
myTable = entity("test_entity", 
                    myDatabase, myDatabase.path)

def do_operations():
    myTable.insert("key", "value")
    myTable.insert("test", "Hello, world!")

    myTable.delete("value")

def make_people():
    class person():
        def __init__(self, name, age):
            self.name = name
            self.age = age

    e = person(
        "Some Person",
        27)
    e.rank = "Boss"

    g = person(
        "Random Guy",
        21)

    myTable.insert([e, g], "people")

do_operations()
make_people()
